<!doctype html>
<html>
{include file="head.html"}

<body>
<div class="fullscreen">
  <div class="scroll_content">
    <div class="topfixed">
      <div class="t_left"><a href="/index.php?m=koudai_order&a=duizhang&order_id={$data.order_id}"><i class="back"></i></a></div>
      <div class="t_main">口袋结算</div>
    </div>
    <div class="paddingheight"></div>
  </div>
</div>
<div class="comblock">
  <div class="cart_change_list_title">挂账商品</div>
  <table class="cart_change_list_table">
    <tbody>
      <tr>
        <th>图片</th>
        <th>名称</th>
       
        <th>总价</th>
      </tr>
       {foreach item=c from=$data.products}
    {if $c.gznum}
      <tr>
        <td width="60"><img src="{$c.imgurl|images_site}.100x100.jpg" width="50" height="50"></td>
        <td><div class="tit">{$c.title}</div>
        	<div><span>￥{$c.order_price}</span> &nbsp; <span>{$c.gznum}件</span></div>
        </td>
        <td width="70">{math equation="x*y" x="$c.order_price" y="$c.gznum" }</td>
      </tr>
    {/if}  
     {/foreach} 
    </tbody>
  </table>
  <div class="cart_change_total clearfix"> <span class="fr">数量：<b class="red">{$gz_num}</b>&nbsp;合计：￥<b class="red">{$gz_money}</b></span> </div>
</div>
<div class="comblock">
  <div class="cart_change_list_title">退货商品</div>
  <table class="cart_change_list_table">
    <tbody>
      <tr>
        <th>图片</th>
        <th>名称</th>
        
        <th>总价</th>
      </tr>
       {foreach item=c from=$data.products}
    {if $c.thnum}
      <tr>
        <td width="60"><img src="{$c.imgurl|images_site}.100x100.jpg" width="50" height="50"></td>
        <td><div class="tit">{$c.title}</div>
        	<div><span>￥{$c.order_price}</span> &nbsp; <span>{$c.thnum}件</span></div>
        </td>
        <td width="70">{math equation="x*y" x="$c.order_price" y="$c.thnum" }</td>
      </tr>
    {/if}  
     {/foreach} 
    </tbody>
  </table>
  <div class="cart_change_total clearfix"> <span class="fl">口袋专员会尽快安排上门取货</span> <span class="fr"><span class="fr">数量：<b class="red">{$th_num}</b>&nbsp;合计：￥<b class="red">{$th_money}</b></span></span> </div>
</div>
<div class="comblock">
  <table class="cart_change_table">
    <tr>
      <th>本次结款：</th>
      <td><span class="price">￥{$js_money}</span> <sup>获得{$js_money}积分</sup></td>
    </tr>
    <tr>
      <th>支付方式：</th>
      <td><div class="cart_change_payway">
          <ul class="p_dropdown clearfix">
            {if ALIPAY}
            <li>
              <label>
                <input type="radio" name="paytype" value="alipay"  {if !INWEIXIN}checked{/if}>
                <img src="{$skins}img/ico_alipay.png" width="40"></label>
            </li>
            {/if}
            <li>
              <label>
                <input type="radio" name="paytype" value="wxpay"  checked >
                <img src="{$skins}img/ico_weixin.png" width="40"></label>
            </li>
          </ul>
        </div></td>
    </tr>
    
  </table>
</div>
<a id="submit" href="javascript:;" url="/index.php?m=koudai_order&a=duizhangsave&order_id={$data.order_id}" class="cart_change_btn">提交</a>
<script>
$(function(){
	$("#submit").on("click",function(){
		window.location= $(this).attr("url")+"&paytype="+$("input[name='paytype']:checked").val()
	});
});
</script>
</body>
</html>
